﻿<%@ Page Language="C#" MasterPageFile="Admin.master" AutoEventWireup="true" CodeBehind="Newsletters.aspx.cs" Inherits="CrossFactory.SiteNote.Admin.Newsletters" %>

<asp:Content ID="ContentHead" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function SelectPage(choosePageType)
	    {
	        if(choosePageType == 'choosepage')
	        {
	            if (clientIDtxtChoosePage != null)
	            {
	                result = window.showModalDialog("<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>" + "/XmlEditor/PageSelector.aspx?OnlinePage=true&AllowPositionSelection=true&currentPage=" + " " + "&disableNode=true"+"&pageUri="+document.all[clientIDtxtChoosePage].value, null, "dialogHeight: 450px; dialogWidth: 350px; edge: Raised; center: Yes; help: No; scroll:no; resizable: no; status: No;");
	                if (result.returnValue)
	                {
		                var res = result.selectedId.substr(2 + <%= CrossFactory.SiteNote.Components.Utils._ApplicationPath.Length %>);
		                var txt = document.getElementById(clientIDtxtChoosePage);
		                txt.value = res;
	                }
	            }
	        }
	        else
	        {
	            if (clientIDtxtUnsubscribe != null)
	            {
	                result = window.showModalDialog("<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>" + "/XmlEditor/PageSelector.aspx?OnlinePage=true&AllowPositionSelection=true&currentPage=" + " " + "&disableNode=true"+"&pageUri="+document.all[clientIDtxtUnsubscribe].value, null, "dialogHeight: 450px; dialogWidth: 350px; edge: Raised; center: Yes; help: No; scroll:no; resizable: no; status: No;");
	                if (result.returnValue)
	                {
		                var res = result.selectedId.substr(2 + <%= CrossFactory.SiteNote.Components.Utils._ApplicationPath.Length %>);
		                var txt = document.getElementById(clientIDtxtUnsubscribe);
		                txt.value = res;
	                }
	            }
	        }
	    }
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
                    <div id="EditFormBloc" runat="server">
                    
                    </div>
                    
                   
 </asp:Content>
